#ifndef XMLPARSERDRIVER_H
#define XMLPARSERDRIVER_H
#include <string>
#include "XMLParser.hh"

class XMLParserDriver
{
  public:
    XMLParserDriver();
    virtual ~XMLParserDriver();
    
    void scan_begin ();
    void scan_end ();

    int parse (const std::string& f);
    
    // Error handling.
    void error (const yy::location& l, const std::string& m);
    void error (const std::string& m);

    
    std::string file;   
    std::string dtdFileName;
    StructureXml * structure;
};

#endif
